package cn.highset.modules.base.serviceimpl;

import cn.highset.base.HighsetBaseDao;
import cn.highset.modules.base.dao.UserMiniprogramDao;
import cn.highset.modules.base.entity.UserMiniprogram;
import cn.highset.modules.base.service.UserMiniprogramService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户接口实现
 *
 * @author Victor
 */
@Slf4j
@Service
@Transactional
public class UserMiniprogramServiceImpl implements UserMiniprogramService {
    @Autowired
    private UserMiniprogramDao userMiniprogramDao;

    @Override
    public UserMiniprogram findByUserid(String userid) {
        return userMiniprogramDao.findByUserid(userid);
    }

    @Override
    public HighsetBaseDao<UserMiniprogram, String> getRepository() {
        return userMiniprogramDao;
    }
}
